Optimal. Leaf size=26 \[ \sqrt {2 x+x^2}-\tan ^{-1}\left (\sqrt {2 x+x^2}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 26, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.176, Rules used = {699, 702, 209}
\begin {gather*} \sqrt {x^2+2 x}-\text {ArcTan}\left (\sqrt {x^2+2 x}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 209
Rule 699
Rule 702
Rubi steps
\begin {align*} \int \frac {\sqrt {2 x+x^2}}{1+x} \, dx &=\sqrt {2 x+x^2}-\int \frac {1}{(1+x) \sqrt {2 x+x^2}} \, dx\\ &=\sqrt {2 x+x^2}-4 \text {Subst}\left (\int \frac {1}{4+4 x^2} \, dx,x,\sqrt {2 x+x^2}\right )\\ &=\sqrt {2 x+x^2}-\tan ^{-1}\left (\sqrt {2 x+x^2}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.06, size = 44, normalized size = 1.69 \begin {gather*} \sqrt {x (2+x)} \left (1+\frac {2 \tan ^{-1}\left (1+x-\sqrt {x} \sqrt {2+x}\right )}{\sqrt {x} \sqrt {2+x}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.43, size = 21, normalized size = 0.81
method | result | size |
default | \(\sqrt {\left (x +1\right )^{2}-1}+\arctan \left (\frac {1}{\sqrt {\left (x +1\right )^{2}-1}}\right )\) | \(21\) |
risch | \(\frac {x \left (2+x \right )}{\sqrt {x \left (2+x \right )}}+\arctan \left (\frac {1}{\sqrt {\left (x +1\right )^{2}-1}}\right )\) | \(24\) |
trager | \(\sqrt {x^{2}+2 x}+\RootOf \left (\textit {\_Z}^{2}+1\right ) \ln \left (-\frac {\RootOf \left (\textit {\_Z}^{2}+1\right )-\sqrt {x^{2}+2 x}}{x +1}\right )\) | \(44\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.50, size = 17, normalized size = 0.65 \begin {gather*} \sqrt {x^{2} + 2 \, x} + \arcsin \left (\frac {1}{{\left | x + 1 \right |}}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.93, size = 27, normalized size = 1.04 \begin {gather*} \sqrt {x^{2} + 2 \, x} - 2 \, \arctan \left (-x + \sqrt {x^{2} + 2 \, x} - 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {x \left (x + 2\right )}}{x + 1}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.65, size = 27, normalized size = 1.04 \begin {gather*} \sqrt {x^{2} + 2 \, x} - 2 \, \arctan \left (-x + \sqrt {x^{2} + 2 \, x} - 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.04 \begin {gather*} \int \frac {\sqrt {x^2+2\,x}}{x+1} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________